package com.redstar.HappyRefresh;

import com.redstar.HappyRefresh.authority.AuthorityUtils;
import com.redstar.HappyRefresh.authority.BaseAuthority;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@EnableAsync
@EnableScheduling
@SpringBootApplication
@EnableTransactionManagement
@EnableAspectJAutoProxy(exposeProxy = true)
@MapperScan(basePackages = "com.redstar.HappyRefresh.mapper")
public class HappyRefreshApplication {
    public static void main(String[] args) {
        AuthorityUtils.setGlobalVerify(true, new BaseAuthority());
        SpringApplication.run(HappyRefreshApplication.class, args);
        log.info("访问地址：http://localhost:8989/page/login.html");
    }
}
